package com.eqs.enterprisequestionnaire.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eqs.enterprisequestionnaire.model.pojo.Answer;
import com.eqs.enterprisequestionnaire.model.pojo.Response;
import com.eqs.enterprisequestionnaire.model.pojo.User;

import java.util.List;


public interface AnswerService extends IService<Answer>{

    /*
    * 查询所有
    * */
    List<Answer> selectAll(Answer answer);


    /*
     * 根据问题ID获取该选项的所有答案
     * */
    List<Answer> selectAllAnswerByQuestion(Integer question);
    /*
    * 根据选项ID获取该选项的所有答案
    * */
    List<Answer> selectAllAnswer(Integer optionId);

    /*
     * 根据答案获取关联的回答
     * */
    Response selectResponse(Answer answer);

    /*
     * 根据答案获取关联的用户
     * */
    User selectUser(Answer answer);
}